'use strict';

/**
 * @param {Egg.Application} app - egg application
 */
module.exports = app => {
  const { router, controller } = app;
  router.get('/data/:key/:active', controller.common.index);
  router.get('/user', controller.user.getAll);
  router.get('/createuser', controller.user.createUser);
  router.get('/deleteUser', controller.user.deleteUser);
  router.get('/updateUser', controller.user.updateUser);
  router.get('/associate', controller.user.associate);
  router.get('/query', controller.user.query);
};
